using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using WebExam.Core.Repository;

namespace WebExam.DataEntities
{
    [Table(Name = "dbo.GG")]
    public partial class GG : Entity
    {

        private decimal _ggNum;

        private string _ggTitle;

        private string _ggCont;

        private DateTime _ggDate;

        [Column(Storage = "_ggNum", AutoSync = AutoSync.OnInsert, DbType = "Decimal(18,0) NOT NULL IDENTITY", IsPrimaryKey = true, IsDbGenerated = true)]
        public decimal GGNum
        {
            get
            {
                return this._ggNum;
            }
            set
            {
                if ((this._ggNum != value))
                {
                    this.SendPropertyChanging("GGNum");
                    this._ggNum = value;
                    this.SendPropertyChanged("GGNum", value);
                }
            }
        }

        [Column(Storage = "_ggTitle", DbType = "VarChar(500) NOT NULL", CanBeNull = false)]
        public string GGTitle
        {
            get
            {
                return this._ggTitle;
            }
            set
            {
                if ((this._ggTitle != value))
                {
                    this.SendPropertyChanging("GGTitle");
                    this._ggTitle = value;
                    this.SendPropertyChanged("GGTitle", value);
                }
            }
        }

        [Column(Storage = "_ggCont", DbType = "VarChar(2000) NOT NULL", CanBeNull = false)]
        public string GGCont
        {
            get
            {
                return this._ggCont;
            }
            set
            {
                if ((this._ggCont != value))
                {
                    this.SendPropertyChanging("GGCont");
                    this._ggCont = value;
                    this.SendPropertyChanged("GGCont", value);
                }
            }
        }

        [Column(Storage = "_ggDate", DbType = "DateTime")]
        public DateTime GGDate
        {
            get
            {
                return this._ggDate;
            }
            set
            {
                if ((this._ggDate != value))
                {
                    this.SendPropertyChanging("GGDate");
                    this._ggDate = value;
                    this.SendPropertyChanged("GGDate", value);
                }
            }
        }
    }

}
